package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.UserEntity;

/**
 * Created by feng on 2017/2/24.
 */
public class UserDto {
    private Integer userId;
    private String loginName;
    private String loginPwd;
    private String userName;
    private String userSex;
    private String userMobile;
    private String userEmail;
    private String userIcon;
    private String userLoginTime;
    private Integer userState;
    private Integer orgId;
    private Integer userAge;
    private String userProvince;
    private String userArea;
    private String userCity;
    private String userCreateTime;
    private String androidToken;
    private String iosToken;
    private Integer userLoginCount;
    private String userRemarks;
    private String ip;

    private Integer orgType;        //公司类型
    private String orgName;         //公司名
    private Integer loginResult;    //登录返回结果
    private String userPower;       //用户权限
    private String userActors;      //用户角色
    private Integer orgState;       //公司状态


    public UserDto() {

    }

    public UserDto(Integer userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public UserDto(Integer userId, String userName, Integer orgId) {
        this.userId = userId;
        this.userName = userName;
        this.orgId = orgId;
    }

    public UserDto(Integer userId, String loginName, String userName, String userSex, String userMobile, String userEmail, String userIcon, String userLoginTime, Integer userState, String userRemarks) {
        this.userId = userId;
        this.loginName = loginName;
        this.userName = userName;
        this.userSex = userSex;
        this.userMobile = userMobile;
        this.userEmail = userEmail;
        this.userIcon = userIcon;
        this.userLoginTime = userLoginTime;
        this.userState = userState;
        this.userRemarks = userRemarks;
    }

    public UserDto(Integer userId, String loginName, String userName, String userMobile, String userSex, String userEmail) {
        this.userId = userId;
        this.loginName = loginName;
        this.userName = userName;
        this.userMobile = userMobile;
        this.userSex = userSex;
        this.userEmail = userEmail;
    }

    public UserDto(Integer userId, String userIcon, String loginName, String userName, String userLoginTime, Integer loginResult, String userPower, String userSex) {
        this.userId = userId;
        this.userIcon = userIcon;
        this.loginName = loginName;
        this.userName = userName;
        this.userLoginTime = userLoginTime;
        this.loginResult = loginResult;
        this.userPower = userPower;
        this.userSex = userSex;
    }


    public String getUserActors() {
        return userActors;
    }

    public void setUserActors(String userActors) {
        this.userActors = userActors;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(Integer loginResult) {
        this.loginResult = loginResult;
    }

    public String getUserPower() {
        return userPower;
    }

    public void setUserPower(String userPower) {
        this.userPower = userPower;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserArea() {
        return userArea;
    }

    public void setUserArea(String userArea) {
        this.userArea = userArea;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserCreateTime() {
        return userCreateTime;
    }

    public void setUserCreateTime(String userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public String getUserLoginTime() {
        return userLoginTime;
    }

    public void setUserLoginTime(String userLoginTime) {
        this.userLoginTime = userLoginTime;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public String getAndroidToken() {
        return androidToken;
    }

    public void setAndroidToken(String androidToken) {
        this.androidToken = androidToken;
    }

    public String getIosToken() {
        return iosToken;
    }

    public void setIosToken(String iosToken) {
        this.iosToken = iosToken;
    }

    public Integer getUserLoginCount() {
        return userLoginCount;
    }

    public void setUserLoginCount(Integer userLoginCount) {
        this.userLoginCount = userLoginCount;
    }

    public String getUserRemarks() {
        return userRemarks;
    }

    public void setUserRemarks(String userRemarks) {
        this.userRemarks = userRemarks;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getOrgType() {
        return orgType;
    }

    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }

    public Integer getOrgState() {
        return orgState;
    }

    public void setOrgState(Integer orgState) {
        this.orgState = orgState;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public UserEntity toBean() {
        UserEntity userEntity = new UserEntity();
        userEntity.setLoginName(loginName);
        userEntity.setLoginPwd(loginPwd);
        userEntity.setUserName(userName);
        userEntity.setUserMobile(userMobile);
        userEntity.setUserSex(userSex);
        userEntity.setUserEmail(userEmail);
        userEntity.setOrgId(orgId);
        userEntity.setUserCreateTime(userCreateTime);
        userEntity.setUserState(userState);
        userEntity.setUserRemarks(userRemarks);
        userEntity.setUserLoginCount(0);
        return userEntity;
    }

}
